{extend name="Public:base"/}

{block name="main"}
<div class="box-info">
    <form action="{:U('Shipping/edit')}" method="post">
        <div class="form-group row">
            <label class="col-md-2 text-right">配送方式名称</label>
            <div class="col-md-5">
                <input type="text" class="form-control" name="name" value="{$vo.name}" validate="required:true,minlength:1, maxlength:40" />
            </div>
        </div>
        <div class="form-group row">
            <label class="col-md-2 text-right">简介</label>
            <div class="col-md-5">
                <textarea id="description" name="description" rows="4" cols="50">{$vo.description}</textarea>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-md-2 text-right">排序</label>
            <div class="col-md-5">
                <input type="text" name="listorder" value="{:intval($vo[listorder])}" class="form-control" id="listorder" size="3" />
            </div>
        </div>
        <div class="form-group row">
            <label class="col-md-2 text-right">状态</label>
            <div class="col-md-5">
                <input name="status"  value="0" type="radio" {if condition="!$vo[status]"}checked{/if}>  {:L(disable)}
                <input name="status" value="1" type="radio"   {if condition="$vo[status]"}checked{/if}>  {:L(enable)}
            </div>
        </div>

        <div class="form-group row">
            <div class="col-md-5 offset-2">
                <input type="hidden" name="id" value="{$vo.id}">
                <input class="btn btn-primary ajax_form_edit" type="submit" value="提交">
            </div>
        </div>
    </form>
</div>

{/block}